package com.myway.controller;

import com.myway.dto.common.JsonData;
import com.myway.vo.FlyOrderVo;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by Administrator on 2018/8/6.
 */
@Controller
@Slf4j
@RequestMapping("/en/demo")
public class DemoController {

//    @Autowired
//    private TicketService ticketService;

    @RequestMapping("/postTest")
    @ResponseBody
    public JsonData countAmount(FlyOrderVo order){
        Map map=new HashMap<String,Object>();
        return JsonData.success(map);
    }

//    @ResponseBody
//    @RequestMapping("/testTicketService")
//    public JsonData testTicketService(){
//        return JsonData.success(ticketService.handleTicket(""), "success");
//    }
}
